package br.unifor.finance.presentation.command.exception;

/**
 *
 * @author Leonardo
 */
public class ValidationException extends Exception {
  
  /**
   * Creates a new instance of <code>ValidationException</code> without detail message.
   */
  public ValidationException() {
  }
  
  /**
   * Constructs an instance of <code>ValidationException</code> with the specified detail message.
   * @param msg the detail message.
   */
  public ValidationException(String msg) {
    super(msg);
  }
  
  /**
   * Constructs an instance of <code>ValidationException</code> with the specified detail message.
   * @param cause the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown).
   */
  public ValidationException(Throwable cause) {
    super(cause);
  }
  
  /**
   * Constructs an instance of <code>ValidationException</code> with the specified detail message.
   * @param msg the detail message.
   * @param cause the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown).
   */
  public ValidationException(String msg, Throwable cause) {
    super(msg, cause);
  }
}